import request from '@/utils/request'

const api_name = '/teach/front/comment'
export default {
  //根据课程id查询课程评论列表
  pageCommentList(current, limit, courseId) {
    return request({
      url: `${api_name}/pageList/${current}/${limit}/${courseId}`,
      method: 'get'
    })
  },

  //评论课程
  saveComment(comment) {
    return request({
      url: `${api_name}/saveComment`,
      method: 'post',
      data: comment
    })
  },
}
